package com.oa.login.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oa.login.dao.EmpMapper;
import com.oa.login.entity.Emp;

@Service
public class EmpBiz {
	
	@Resource
	private EmpMapper dao;
	
	public Emp findById(int id){
		return dao.findByfk(id);
	}
	
	public String[] findNames(){
		return dao.findNames();
	}
	
	public List<Emp> findAlls(){
		return dao.findAlls();
	}
	
	public void save(Emp e){
		dao.insertSelective(e);
	}
	
	public void del(int id){
		dao.del(id);
	}
}
